/* 头部样式 */
@import '../../sass/variables';
@import '../../sprites/sprite_commonIcon';
.header{
    height: 60px;
    border-bottom: 1px solid $gray;
    position: relative;
    z-index: 1;
    color: $text_muted;
    background: $white;
    .content{
        position: relative;
        width: 1250px;
        margin: 0 auto;
    }
    .rightNav{
        position: absolute;
        z-index: 1;
        top: 0;
        right: 20px;
        font-size: 14px;
        color: inherit;
        .navItem{
            float: left;
            height: 60px;
            line-height: 60px; 
            &:first-child{
                border:0;
            }
            i{
                display: inline-block;
                margin-right: .2em;
            }
        }
        .text{
            margin-top: 20px;
            padding: 0 20px;
            height: 18px;
            line-height: 18px;
            display: inline-block;
            vertical-align: top;
            border-right: 1px solid $gray;
        }
        .userIcon{
            vertical-align: -6px;
            @include sprite($user-icon);
        }
        .settingIcon{
            vertical-align: -4px;            
            @include sprite($setting);
        }
        .noticeIcon{
            vertical-align: -6px;
            @include sprite($notice);
        }
        .language a{ 
            color: $text_muted;
        }
        .languageIcon{
            vertical-align: -5px;
            @include sprite($language);
        }
        .logoutIcon{
            vertical-align: -4px;
            margin-left: 18px;
            @include sprite($goout);
        }
    }
    .show .sublist{
        display: block;
    }
    .sublist{
        @include clfix;
        display: none;
        position: absolute;
        min-width: 480px;
        zoom: 1;
        top: 50px;
        left: 0;
        border: 1px solid $gray;
        background: $white;
        border-radius: 3px;
        padding: 10px 0;
        &::before{
            position: absolute;
            top: -6px;
            left: 40px;
            content: "";
            width: 10px;
            height: 10px;
            background: $white;
            border-right: 1px solid $gray;
            border-top: 1px solid $gray;
            transform: rotate(-45deg);
            display: none\9;
            border-radius: 3px;
        }
        ul{
            float: left;
            min-width: 140px;
            *width: 140px;
            line-height: 30px;
            border-right: 1px solid $gray;
        }
        .subItem{
            display: block;
            color: $text_muted;
            line-height: 30px;
            padding: 0 20px;
            &:before{
                content: "";
                display: inline-block;
                vertical-align: middle;
                margin-right: 10px;
                @include sprite($arrow-right);
                height: 9px;
            }
            &:hover{
                background: $primary;
                color: $white;
                &:before{
                    @include sprite($arrow-right-hover);
                }
            }
        }
        .info{
            float: left;
            border-left: 1px solid $gray;
            width: 300px;
            margin-left: -1px;
            padding: 0 15px;
            line-height: 1.6;
            .danger{
                font-size: 18px;
                font-weight: bold;
            }
        }
        .info-title{
            font-size: 16px;
            line-height: 2.2;
            color: $primary;
            font-weight: bold;
            @include clfix;
        }
        .look{
            margin-left: 5px;
            display: inline-block;
            padding: 0 12px;
            font-weight: normal;
            border-radius: 14px;
            height: 28px;
            line-height: 28px;
            background: $primary_lighter;
            color: $primary;
            font-size: 14px;
            white-space: nowrap;
        }
    }
    .setting{
        position: relative;
        ul{
            min-width: 110px;
        }
        .sublist{
            min-width: 60px;
        }
    }
    .logout{
        cursor: pointer;
    }
    .n-tips {
        margin-top: -3px;
        margin-left: 5px;
        vertical-align: top;
        padding: 2px 4px;
        *padding: 0 4px 2px;
        border-radius: 14px;
        background-color: $danger;
        display: inline-block;
        font-size: 12px;
        *font-size: 10px;
        font-style: normal;
        *height: 12px;
        line-height: 10px;
        *line-height: 1;
        text-align: center;
        color: $white;
    }
}

